package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 公司-商家：客服聊天记录对象 tb_company_merchant_chat_record
 * 
 * @author hkj
 * @date 2024-09-09
 */
public class TbCompanyMerchantChatRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，唯一标识每条聊天记录 */
    private Long recordId;

    /** 商家ID */
    private Long merchantId;

    /** 商家名 */
    @Excel(name = "商家名")
    private String merchantName;

    /** 公司员工ID  (等同于sys_user表中的user_id) */
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 商家订单ID */
    @Excel(name = "商家订单ID")
    private Long merchantOrderId;

    /** 消息发送者 */
    @Excel(name = "消息发送者")
    private String messageSender;

    /** 消息发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "消息发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date messageSentTime;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageInfo;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }
    public void setMerchantName(String merchantName) 
    {
        this.merchantName = merchantName;
    }

    public String getMerchantName() 
    {
        return merchantName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setMerchantOrderId(Long merchantOrderId) 
    {
        this.merchantOrderId = merchantOrderId;
    }

    public Long getMerchantOrderId() 
    {
        return merchantOrderId;
    }
    public void setMessageSender(String messageSender) 
    {
        this.messageSender = messageSender;
    }

    public String getMessageSender() 
    {
        return messageSender;
    }
    public void setMessageSentTime(Date messageSentTime) 
    {
        this.messageSentTime = messageSentTime;
    }

    public Date getMessageSentTime() 
    {
        return messageSentTime;
    }
    public void setMessageInfo(String messageInfo) 
    {
        this.messageInfo = messageInfo;
    }

    public String getMessageInfo() 
    {
        return messageInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("merchantId", getMerchantId())
            .append("merchantName", getMerchantName())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("merchantOrderId", getMerchantOrderId())
            .append("messageSender", getMessageSender())
            .append("messageSentTime", getMessageSentTime())
            .append("messageInfo", getMessageInfo())
            .toString();
    }
}
